<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\DB;
use Mongo;


class mongodb extends Model
{
    //

    public static function connectionMongodb($database,$tables)
    {
        return $users = DB::connection($database)->collection($tables);
    }
}
